<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="theme-color">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>分享家</title>
    <link rel="stylesheet" type="text/css" href="../lib/css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../lib/css/mui.css"/>
    <link rel="stylesheet" href="../css/util.css">
    <script src="http://at.alicdn.com/t/font_371407_7omis3wrfr7tx1or.js"></script>
</head>
<link rel="stylesheet" href="../css/select_city.css">
<body>
<header class="fxj-header">
    <back></back>
    <h1 class="fxj-title">选择城市或目的地</h1>
</header>

<main id="main">
    <div class="search-box">
        <label class="search-ipt">
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-search-o"></use>
            </svg>
            <input id="iptSearch" type="search" placeholder="请输入城市或目的地" @keyup="inputCity">
        </label>
        <svg class="icon clear-text" aria-hidden="true" @click="clearIpt">
            <use xlink:href="#icon-cha-copy"></use>
        </svg>
    </div>
    <div v-cloak class="suggest" v-show="!!proposeCity" v-for="city of proposeCity" @click="selectCity(city.id,city.name)">
        {{city.name}}
        <svg class="icon clear-text" aria-hidden="true">
            <use xlink:href="#icon-you"></use>
        </svg>
    </div>
    <div class="container-title">
        <svg class="icon clear-text" aria-hidden="true">
            <use xlink:href="#icon-feiji"></use>
        </svg>
        热门城市或目的地
    </div>
    <div class="hot-city">
        <span v-cloak class="city" v-for="city of hotCity" @click="selectCity(city.value,city.text)">{{city.text}}</span>
    </div>
    <div class="container-title">
        全部省份
    </div>
    <div class="all-city" id="all-city">
        <span class="city" :class="{active:province.active}" v-for="(province,i) of allCity"
              @click="setSelectProvince($event,province)" v-text="province.text"></span>
    </div>
    <div class="container-title" v-cloak v-if="!!selectProvince">{{selectProvince.text}}</div>
    <div class="all-city-show">
        <span class="city" v-cloak @click="selectCity(city.value,city.text)" v-for="city of subCity">{{city.text}}</span>
    </div>

</main>

<script type="text/javascript" src="../lib/js/babel-polyfill.js"></script>
<script type="text/javascript" src="../lib/js/vue.js"></script>
<script type="text/javascript" src="../lib/js/mui.js"></script>
<script type="text/javascript" src="../lib/js/jquery.js"></script>
<script type="text/javascript" src="../script/util.js"></script>

<script src="../lib/js/city.js"></script>
<script src="../lib/js/search-city.js"></script>
<script src="../script/select_city.js"></script>
</body>
</html>